/*
 *  Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
 *
 *  This program and the accompanying materials are made available under the
 *  terms of the Apache License, Version 2.0 which is available at
 *  https://www.apache.org/licenses/LICENSE-2.0
 *
 *  SPDX-License-Identifier: Apache-2.0
 *
 *  Contributors:
 *       Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
 *
 */

package org.eclipse.edc.protocol.dsp.http.spi;

import org.eclipse.edc.connector.controlplane.services.spi.protocol.ProtocolVersion;
import org.eclipse.edc.spi.result.Result;

/**
 * DSP protocol string parser
 */
public interface DspProtocolParser {

    /**
     * Parses the DSP protocol string with format {@literal dataspace-protocol-http:<version>}
     * and extract the resulting {@link ProtocolVersion}
     */
    Result<ProtocolVersion> parse(String protocol);
}
